package com.duobaoyu.dby.supply.biz.client.resource.bean.dto;

import com.duobaoyu.dby.common.core.validator.groups.Add;
import com.duobaoyu.dby.common.core.validator.groups.Edit;
import com.duobaoyu.dby.common.mybatis.support.Query;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @className: DictionaryItemDTO
 * @description: 字典项表
 * @author: lyy
 * @createDate: 2022-06-23 10:10
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DictionaryItem对象", description = "字典项表")
public class DictionaryItemDTO extends Query implements Serializable {

	private static final long serialVersionUID = 1675048785911717218L;
	/**
	 * 字典项ID
	 */
	@ApiModelProperty(value = "字典项ID")
	private Long id;
	/**
	 * 字典ID
	 */
	@ApiModelProperty(value = "字典ID")
	private Long dictionaryId;
	/**
	 * 字典编码
	 */
	@ApiModelProperty(value = "字典编码")
	private String dictionaryCode;
	/**
	 * 字典项文本
	 */
	@ApiModelProperty(value = "字典项文本")
	@NotBlank(message = "字典项文本不可为空",groups = {Add.class, Edit.class})
	private String itemText;
	/**
	 * 字典项值
	 */
	@ApiModelProperty(value = "字典项值")
	@NotBlank(message = "字典项值不可为空",groups = {Add.class, Edit.class})
	private String itemValue;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer sortOrder;
	/**
	 * 状态 0-停用 1-启用
	 */
	@ApiModelProperty(value = "状态 0-停用 1-启用")
	private Integer status;
	/**
	 * 字典项描述
	 */
	@ApiModelProperty(value = "字典项描述")
	private String description;
}
